package com.ruoyi.docManager.service.impl;
import com.ruoyi.docManager.domain.SendDocManager;
import com.ruoyi.docManager.mapper.SendDocManagerMapper;
import com.ruoyi.docManager.service.ISendDocManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SendDocManagerServiceImpl implements ISendDocManagerService {
    @Autowired
    private SendDocManagerMapper sendManagerMapper;

    @Override
    public int insertSendDocManager(SendDocManager sendDocManager) {
       return sendManagerMapper.insertSendDocManager(sendDocManager);
    }

    @Override
    public SendDocManager selectSendDocManagerById(Long id) {
        return sendManagerMapper.selectSendDocManagerById(id);
    }
    /*根据公文id取出转发列表
    * */
    @Override
    public List<SendDocManager> selectSendDocManagerList(long docId) {
        return sendManagerMapper.selectSendDocManagerList(docId);
    }
}
